html, 
body {
    height: 100%;
    font-family: sans-serif;
    font-size: 15px;
}

#wrap {
    min-height: 100%;
}

#main {
    min-height: 200px;
    min-width: 900px;
    overflow: auto;
    padding-bottom: 38px;/* must be same height as the footer */
}  

#header div.left {
    float: left;
    margin-left: 30px;
}

#header div.left ul.mainmenu {
    background-color: #f9f9f9;
    border-left: 1px solid #bbb;
    border-right: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
    font-size: 17px;
    display: inline-block;
}
#header div.left ul.submenu {
    margin-top: -1px;
    margin-left: -15px;
    background-color: #f9f9f9;
    border: 1px solid #bbb;
    display: inline-block;
    font-size: 15px;
}

#header div a {
    display: block;
    padding: 5px 5px 6px 5px;
    text-decoration: none;
    color: #000;
}

#header div a.active,
#header div a:hover {
    color: #fff;
    background-color: #aaa;
}

#header div.right {
    float: right;
    border-bottom: 1px solid #bbb;
    border-left: 1px solid #bbb;
    border-right: 1px solid #bbb;
    background-color: #f9f9f9;
    margin-right: 30px;
    margin-left: 30px;
}

#header ul {
    display: inline;
}

#header ul li {
    display: inline-block;
}

#footer {
    position: relative;
    margin-top: -38px; /* negative value of footer height */
    height: 37px;
    min-width: 900px;
    border-top: 1px solid #b9b9b9;
    font-size: 13px;
    background-color: #e9e9e9;
} 

#footer img {
    padding: 2px 0 0 2px;
}

#content {
    padding: 10px 25px 10px 25px;
}

#title {
    clear: both;
    padding: 25px 0 0 25px;
}
#form400 {
    width: 400px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: right;
}
#form400 form input,
#form400 form label {
    margin: 5px 0;
}

#form400 form label {
    padding-right: 5px;
}

#form400 form input[type=text],
#form400 form input[type=password] {
    width: 275px;
}

div.error {
    background-color: #fff4f4;
    border: 1px solid #c00;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    color: #c00;
}

div.success {
    background-color: #f4fff4;
    border: 1px solid #0c0;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    color: #0c0;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

h1 {
    padding-bottom: 15px;
    font-size: 23px;
}
